<?php
namespace M\Controller;
use Think\Controller;

class ArticleapiController extends Controller{

    public function find(){
        $article=M('article');
        $list = $article->order('time')->field('id,title,time,image,description,url')->select();
        $info=array(
            'code'=>'1',
            'msg'=>'查询文章成功',
            'data'=>$list
        );
        echo json_encode($info,JSON_UNESCAPED_UNICODE);
    }
}